/*
 * @Author: LBH 1336709799@qq.com
 * @Date: 2024-10-28 12:13:41
 * @LastEditors: LBH 1336709799@qq.com
 * @LastEditTime: 2024-11-02 09:31:55
 * @FilePath: \enjoy_plus_three\lib\main.dart
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import 'package:enjoy_plus_three/pages/house/building_list.dart';
import 'package:enjoy_plus_three/pages/house/house_form.dart';
import 'package:enjoy_plus_three/pages/house/house_list.dart';
import 'package:enjoy_plus_three/pages/house/location_list.dart';
import 'package:enjoy_plus_three/pages/house/room_list.dart';
import 'package:enjoy_plus_three/pages/login/index.dart';
import 'package:enjoy_plus_three/pages/notice/index.dart';
import 'package:enjoy_plus_three/pages/profile/index.dart';
import 'package:enjoy_plus_three/pages/tab_bar_page.dart';
import 'package:enjoy_plus_three/router/index.dart';
import 'package:enjoy_plus_three/stores/counter.dart';
import 'package:enjoy_plus_three/utils/token.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

void main() {
  runApp(ChangeNotifierProvider(
    create:(context) => Counter(),
    child: MaterialApp(
      // 路由组件配置
    routes: RouterManager.routes,
    // 路由拦截配置
    onGenerateRoute:(settings) => RouterManager.generateRoute(settings),
    initialRoute: '/', //初始化的加载路由的路径
    ),
    
  ));
}